Returns an integer that indicates the browser running the script. You can compare the returned integers against the BrowserTypeIE, BrowserTypeFirefox, and BrowserTypeChrome constants. See Constants.
Syntax
GetCurrentBrowserType()
Return value
| Value | Description |
|---|---|
| 0 | Browser is Microsoft Internet Explorer. |
| 1 | Browser is Mozilla Firefox. |
| 2 | Browser is Google Chrome. |
Example
If GetCurrentBrowserType = BrowserTypeIE Then
PrintLn("Browser is IE")
Else
PrintLn("Browser is Firefox")
End If